mcp
`POST /api/mcp/auth-configs` — register a platform Composio connector (admin).
POST
/
api
/
mcp
/
auth-configs
`POST /api/mcp/auth-configs` — register a platform Composio connector (admin).
curl --request POST \
--url https://api.example.com/api/mcp/auth-configs \
--header 'Content-Type: application/json' \
--data '
{
"toolkit": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"description": "<string>",
"display_name": "<string>",
"logo_url": "<string>",
"scopes": [
"<string>"
],
"use_composio_managed": true
}
'import requests
url = "https://api.example.com/api/mcp/auth-configs"
payload = {
"toolkit": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"description": "<string>",
"display_name": "<string>",
"logo_url": "<string>",
"scopes": ["<string>"],
"use_composio_managed": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
toolkit: '<string>',
client_id: '<string>',
client_secret: '<string>',
description: '<string>',
display_name: '<string>',
logo_url: '<string>',
scopes: ['<string>'],
use_composio_managed: true
})
};
fetch('https://api.example.com/api/mcp/auth-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/mcp/auth-configs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'toolkit' => '<string>',
'client_id' => '<string>',
'client_secret' => '<string>',
'description' => '<string>',
'display_name' => '<string>',
'logo_url' => '<string>',
'scopes' => [
'<string>'
],
'use_composio_managed' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/mcp/auth-configs"
payload := strings.NewReader("{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/mcp/auth-configs")
.header("Content-Type", "application/json")
.body("{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/mcp/auth-configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"message": "<string>",
"status_code": 200
}{
"data": {},
"message": "<string>",
"status_code": 200
}Body
application/json
Response
Auth config created — data is the connector view
Doc-only schema for the standard MCP ApiResponse envelope
({"data": …, "status_code": N, "message": "…"}). Most /api/mcp/*
payloads are service-layer serde_json::Value views, so data is
documented as a free-form object; each route's response description says
what it carries.
⌘I
`POST /api/mcp/auth-configs` — register a platform Composio connector (admin).
curl --request POST \
--url https://api.example.com/api/mcp/auth-configs \
--header 'Content-Type: application/json' \
--data '
{
"toolkit": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"description": "<string>",
"display_name": "<string>",
"logo_url": "<string>",
"scopes": [
"<string>"
],
"use_composio_managed": true
}
'import requests
url = "https://api.example.com/api/mcp/auth-configs"
payload = {
"toolkit": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"description": "<string>",
"display_name": "<string>",
"logo_url": "<string>",
"scopes": ["<string>"],
"use_composio_managed": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
toolkit: '<string>',
client_id: '<string>',
client_secret: '<string>',
description: '<string>',
display_name: '<string>',
logo_url: '<string>',
scopes: ['<string>'],
use_composio_managed: true
})
};
fetch('https://api.example.com/api/mcp/auth-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/mcp/auth-configs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'toolkit' => '<string>',
'client_id' => '<string>',
'client_secret' => '<string>',
'description' => '<string>',
'display_name' => '<string>',
'logo_url' => '<string>',
'scopes' => [
'<string>'
],
'use_composio_managed' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/mcp/auth-configs"
payload := strings.NewReader("{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/mcp/auth-configs")
.header("Content-Type", "application/json")
.body("{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/mcp/auth-configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"toolkit\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"description\": \"<string>\",\n \"display_name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"scopes\": [\n \"<string>\"\n ],\n \"use_composio_managed\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"message": "<string>",
"status_code": 200
}{
"data": {},
"message": "<string>",
"status_code": 200
}